<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改法律问答--问题')" />
    <th:block th:include="include :: summernote-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-question-edit" th:object="${crQuestion}">
            <input name="questionId" th:field="*{questionId}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">审核状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('approval_status')}">
                        <input type="radio" th:id="${'examineStatus_' + dict.dictCode}" name="examineStatus" th:value="${dict.dictValue}" th:field="*{examineStatus}">
                        <label th:for="${'examineStatus_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">屏蔽状态，0 未屏蔽，1已屏蔽：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <div class="radio-box" th:each="dict : ${@dict.getType('shield_status')}">-->
<!--                        <input type="radio" th:id="${'screenStatus_' + dict.dictCode}" name="screenStatus" th:value="${dict.dictValue}" th:field="*{screenStatus}">-->
<!--                        <label th:for="${'screenStatus_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>-->
<!--                    </div>-->
<!--                </div>-->
<!--            </div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: summernote-js" />
    <script th:inline="javascript">
        var prefix = ctx + "business/question";
        $("#form-question-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/audit", $('#form-question-edit').serialize());
            }
        }
    </script>
</body>
</html>